We have a module that includes several different views that represent different documents. We then do a basic Word export into different base templates which add a front page and TOC. What we are wondering is if there is a .dxl scrip which would allow us to leave off the DOORS numbering scheme and add a custom scheme based on the template being exported into. We have some users that don't like it when we skip numbers even though some objects are not included in every view and they want to be able to simply renumber the objects based on what is included in the view being exported. I am a total novice at coding .dxl (I have modified some scripts that I found and some that were given to us but have never written any on my own). Any and all help would be appreciated. Thanks.
|
Re: Custom Export Numbering It may be easier in this case to create a custom style in MS Word that automatically numbers your requirements. Could it fit your need? Alain |
Re: Custom Export Numbering adevicq - Wed Apr 11 12:43:51 EDT 2012 |
Re: Custom Export Numbering
I think this a bad idea since the numbering will change between exports. That will be like talking to the "5th person in line" when the line keeps changing. Readers of the report are far better off seeing a paragraph and being able to tell which DOORS Object it is. int iResult Object oPrev = previous(obj) if (null oPrev) // then iResult = -1 else iResult = oPrev.attrDXLName obj.attrDXLName = iResult+1 //print iResult "\t" (identifier(obj)) "\t" //if (null oPrev)// //then print "top\n" //else print identifier(oPrev) "\n"
|
Re: Custom Export Numbering llandale - Wed Apr 11 13:58:31 EDT 2012
I think this a bad idea since the numbering will change between exports. That will be like talking to the "5th person in line" when the line keeps changing. Readers of the report are far better off seeing a paragraph and being able to tell which DOORS Object it is. int iResult Object oPrev = previous(obj) if (null oPrev) // then iResult = -1 else iResult = oPrev.attrDXLName obj.attrDXLName = iResult+1 //print iResult "\t" (identifier(obj)) "\t" //if (null oPrev)// //then print "top\n" //else print identifier(oPrev) "\n"
|